<template>
  <div @click="toIndex">
    <el-image class="logo" :src="url" :fit="fit"></el-image>
  </div>
</template>

<script>
export default {
  name: 'Logo',
  data () {
    return {
      url: require('../../assets/logo/logo.png'),
      fit: 'contain',
      tooltip: {
        content: '首页'
      }
    }
  },
  methods: {
    toIndex () {
      // this.$router.push('/')
      this.$notify.success('点击Logo')
    }
  }
}
</script>

<style lang="scss" scoped>
.logo {
  cursor: pointer;
  height: 60px;
}
</style>
